package com.promise.jokerdream.model.knight

object KnightSkillMapping {

    // ID到名称的映射
    // 傻逼乐斗，不知道为什么群侠战斗记录时首位数字被去掉了
    private val mapping = mapOf(
        90 to "桃木扇",
        108 to "蚀骨鞭",
        124 to "如意金箍棒",
        142 to "绣花针",
        143 to "龙舌弓",
        155 to "玄铁磁石",
        179 to "啤酒瓶",
        534 to "关刀",
        535 to "狂魔镰",
        536 to "小李飞刀",
        537 to "判官笔",
        538 to "水枪",
        539 to "充气锤子",
        540 to "青龙戟",
        541 to "三叉戟",
        542 to "仙人掌",
        543 to "大哥大",
        544 to "木剑",
        545 to "红缨枪",
        546 to "蛇影弓",
        547 to "板砖",
        548 to "木槌",
        549 to "拖鞋",
        550 to "汽水罐",
        551 to "烧饼",
        552 to "接力棒",
        553 to "平底锅",
        555 to "环扣刀",
        556 to "铁铲",
        557 to "扳手",
        558 to "开山斧",
        559 to "折凳",
        560 to "蛇矛",
        561 to "老鼠",
        562 to "流星球",
        563 to "手雷",
        564 to "短剑",
        565 to "宽刃剑",
        566 to "双截棍",
        31 to "如来神掌",
        34 to "天马流星拳",
        113 to "早死早超生",
        601 to "七星八卦剑",
        605 to "潜龙勿用",
        805 to "愈合祷言",
        806 to "希望之歌",
        864 to "吸血咒",
        866 to "虹吸大法",
        910 to "足下生根",
        919 to "迷踪步",
        2667 to "冲击波",
        2668 to "第六感",
        2669 to "强健身躯",
        2670 to "凌波微步",
        2671 to "皮糙肉厚",
        2672 to "易筋经",
        2673 to "霸气护体",
        2674 to "天使之翼",
        2675 to "势如暴雨",
        2676 to "天生大力",
        2677 to "均衡发展",
        2678 to "神来一击",
        2679 to "身手敏捷",
        2680 to "武器好手",
        2681 to "避重就轻",
        2682 to "气功",
        2683 to "装死",
        2684 to "黑龙波",
        2685 to "嗜血",
        2686 to "大海无量",
        2687 to "快人一步",
        2688 to "天残脚",
        2689 to "企鹅挠痒",
        2690 to "黯然一击",
        2691 to "太极拳",
        2692 to "气疗术",
        2693 to "矿泉水",
        2694 to "无影手",
        2695 to "残影",
        2696 to "修心术",
        2697 to "疾风步",
        2698 to "企鹅吼",
        2699 to "龙卷风",
        2700 to "抖抖拳",
        2701 to "肉搏好手",
        2702 to "鬼影缠身",
        2703 to "缴械",
        2704 to "人品爆发",
        2705 to "冲锋",
        2706 to "晴天霹雳",
        2707 to "佛山无影脚",
        2708 to "点穴",
        2709 to "胶水"
    )
    
    /**
     * 根据ID获取名称
     * @param id ID
     * @return 对应的名称，如果不存在则返回null
     */
    fun getNameById(id: Int): String? {
        return mapping[id]
    }
    
    /**
     * 根据ID获取名称，如果不存在则返回默认值
     * @param id ID
     * @param default 默认值
     * @return 对应的名称，如果不存在则返回默认值
     */
    fun getNameById(id: Int, default: String): String {
        return mapping[id] ?: default
    }
    
    /**
     * 检查ID是否存在
     * @param id ID
     * @return 如果存在返回true，否则返回false
     */
    fun containsId(id: Int): Boolean {
        return mapping.containsKey(id)
    }
}